package com.aaa.controller;

import com.aaa.entity.Front_user;
import com.aaa.mapper.Front_userMapper;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("Front_user")
public class Front_userController {
    @Resource
    Front_userMapper front_userMapper;
    @RequestMapping("select")
    @ResponseBody
    public List<Front_user> select(){
        return front_userMapper.select();
    }
    @RequestMapping("add")
    @ResponseBody
    public int add(Front_user front_user){
        return front_userMapper.add(front_user);
    }
    @RequestMapping("update")
    @ResponseBody
    public int update(Front_user front_user){
        return front_userMapper.update(front_user);
    }
}
